package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the ESQUELA_ANDAHUAYLAS database table.
 * 
 */
//@Entity
//@Table(name="ESQUELA_ANDAHUAYLAS")
public class EsquelaAndahuayla implements Serializable {
	private static final long serialVersionUID = 1L;
	private String agntSync;
	private String areaRegId;
	private String coActoRgstOrig;
	private String codActo;
	private byte[] data;
	private Date feEmision;
	private String nuEsquela;
	private BigDecimal refnumTitu;
	private String tipoEsq;
	private Date tsUltSync;

    public EsquelaAndahuayla() {
    }


	@Column(name="AGNT_SYNC", length=4)
	public String getAgntSync() {
		return this.agntSync;
	}

	public void setAgntSync(String agntSync) {
		this.agntSync = agntSync;
	}


	@Column(name="AREA_REG_ID", nullable=false, length=5)
	public String getAreaRegId() {
		return this.areaRegId;
	}

	public void setAreaRegId(String areaRegId) {
		this.areaRegId = areaRegId;
	}


	@Column(name="CO_ACTO_RGST_ORIG", length=5)
	public String getCoActoRgstOrig() {
		return this.coActoRgstOrig;
	}

	public void setCoActoRgstOrig(String coActoRgstOrig) {
		this.coActoRgstOrig = coActoRgstOrig;
	}


	@Column(name="COD_ACTO", length=5)
	public String getCodActo() {
		return this.codActo;
	}

	public void setCodActo(String codActo) {
		this.codActo = codActo;
	}


    @Lob()
	public byte[] getData() {
		return this.data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="FE_EMISION", nullable=false)
	public Date getFeEmision() {
		return this.feEmision;
	}

	public void setFeEmision(Date feEmision) {
		this.feEmision = feEmision;
	}


	@Column(name="NU_ESQUELA", nullable=false, length=8)
	public String getNuEsquela() {
		return this.nuEsquela;
	}

	public void setNuEsquela(String nuEsquela) {
		this.nuEsquela = nuEsquela;
	}


	@Column(name="REFNUM_TITU", nullable=false)
	public BigDecimal getRefnumTitu() {
		return this.refnumTitu;
	}

	public void setRefnumTitu(BigDecimal refnumTitu) {
		this.refnumTitu = refnumTitu;
	}


	@Column(name="TIPO_ESQ", nullable=false, length=1)
	public String getTipoEsq() {
		return this.tipoEsq;
	}

	public void setTipoEsq(String tipoEsq) {
		this.tipoEsq = tipoEsq;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_SYNC")
	public Date getTsUltSync() {
		return this.tsUltSync;
	}

	public void setTsUltSync(Date tsUltSync) {
		this.tsUltSync = tsUltSync;
	}

}